Introduction to QuickTime 3 for Windows Programmers

Previous | Overview | Contents

Conversion From Earlier Versions

Converting an existing Windows program from earlier versions of QuickTime to QuickTime 3 is relatively simple, but there are a few changes that you should be aware of. These include:

    void
        GetMovieBox
            (Movie theMovie,
             Rect *boxRect)

instead of

    void
        GetMovieBox
            (Movie mMovie,
             LPRECT lprcMovieRect)

as in earlier versions.

    ComponentInstance
        NewMovieController
            (Movie theMovie,
             const Rect *movieRect,
             long someFlags)

instead of four. To obtain the port corresponding to a window, you must first register the window with QTML by calling CreatePortAssociation , then use GetHWNDPort to get the port pointer. Remember to deregister the window with DestroyPortAssociation before destroying it.

In porting existing QuickTime applications from the Mac OS platform to Windows, the problem also arises of how to transport resources belonging to the application program itself. On the Mac OS platform, such resources normally reside in the resource fork of the application ( 'APPL' ) file. A utility named RezWack, provided as part of the QuickTime 3 Software Development Kit for Windows, incorporates these resources from the resource fork of the Mac OS version into the executable ( .exe ) file of the Windows version. The QTML resource-management routines will correctly locate and read in the resources from the application's .exe file.

 


© 1997 Apple Computer, Inc.

Previous | Overview | Contents